/**
* $Id: jquery.separator-0.0.0.js 1640 2008-10-16 09:15:09Z akad $
* @version 0.0.0
*
* Example:
*
*
* - 1
* - 2
* - 3
* - 4
* - 5
* - 6
*
*
*
*/
(function ($) {
$.fn.separator = function (options) {
var options = $.extend({
separator: " | ",
selector: "a"
}, options);
var coll = $(options.selector, $(this));
var curr = 0;
coll.each(function (index) {
if (index == (coll.length - 1)) {
return;
}
$(this).after(options.separator);
});
return this;
};
})(jQuery);